package com.wjk.kylin.modules.system.config.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjk.kylin.core.exception.BusinessException;
import com.wjk.kylin.modules.system.config.entity.Config;


/**
 * <p>
 *  参数配置表 服务类
 * </p>
 *
 * @author wangjkui
 * @since 2020-06-07
 */
public interface IConfigService extends IService<Config> {

    IPage<Config> findPage(Page<Config> page, Config config);

    boolean save(Config config) throws BusinessException;

    boolean update(Config config) throws BusinessException;

    boolean deleteByIds(String[] configIds) throws BusinessException;

    /**
     * 根据key查询val
     * @param configKey
     * @return
     */
    String getConfigKey(String configKey);

    /**
     * 清空参数配置缓存
     */
    void clearCache();
}
